#include<bits/stdc++.h>
using namespace std;
int main(){
    freopen("detect.in","r",stdin);
    freopen("detect.out","w",stdout);
    int T,n,m,L,V,m;
    cin>>T;
    for(int i=1;i<=T;i++){
        cin>>n>>m>>L>>V;
        int d[n],v[n],a[n],p[m];
        for(int i=1;i<=n;i++){
            d[i]=0;
            v[i]=0;
            a[i]=0;
        }
        for(int i=1;i<=m;i++){
            p[i]=0;

        }
        for(int i=1;i<=n;i++){
            cin>>d[i]>>v[i]>>a[i];
        }
        for(int i=1;i<=n;i++){
            cin>>p[i]
        }

    }
    freout(stdin);
    freout(stdout);
}
